package com.enjoy.mock;

import com.alibaba.dubbo.config.annotation.Service;
import com.xiangxue.jack.mock.MockService;

/**
 * @Classname MockServiceImpl
 * @Description TODO
 * @Author Jack
 * Date 2021/6/27 21:20
 * Version 1.0
 */
@Service
public class MockServiceImpl implements MockService {
    @Override
    public String mock(String s) {
        try {
            Thread.sleep(1000000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("========MockServiceImpl.mock");
        return "========MockServiceImpl.mock";
    }

    @Override
    public String queryArea(String s) {
        return s;
    }

    @Override
    public String queryUser(String s) {
        return s;
    }
}
